﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Forum.master" CodeBehind="GuidelinePg.aspx.cs" Inherits="Forums.GuidelinePg" %>

<%@ Register src="UserControls/SearchFunction.ascx" tagname="SearchFunction" tagprefix="uc1" %>

<asp:Content ID="content" ContentPlaceHolderID="mainContentHolder" runat="server">
    
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="guideline_id" DataSourceID="SqlDataSource1" 
        AllowPaging="True">
        <Columns>
            <asp:BoundField DataField="guideline_message" HeaderText="Guideline" 
                SortExpression="guideline_message" />
            <asp:BoundField DataField="date_added" HeaderText="Date Added" 
                SortExpression="date_added" DataFormatString="{0:D}" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:CentForumsDB %>" 
        SelectCommand="SELECT * FROM [GUIDELINE]"></asp:SqlDataSource>
    
    <br />
    <br />
    
</asp:Content>
<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="searchContentHolder">

                    <uc1:SearchFunction ID="SearchFunction1" runat="server" />

</asp:Content>
